

<!DOCTYPE html>
<html lang class="loading">
<head><meta name="generator" content="Hexo 3.9.0">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>Java基础之集合 - 闲看花开 静待花落</title>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="google" content="notranslate">
    <meta name="keywords" content="贰货不二,"> 
    <meta name="description" content="利用list集合编写的终极武器系统用户操作123456789101112131415161718192021222324252627282930313233343536373839404142434,"> 
    <meta name="author" content="贰货不二"> 
    <link rel="alternative" href="atom.xml" title="闲看花开 静待花落" type="application/atom+xml"> 
    <link rel="icon" href="/img/favicon.png"> 
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
    <link rel="stylesheet" href="/css/diaspora.css">
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({
              google_ad_client: "ca-pub-8691406134231910",
              enable_page_level_ads: true
         });
    </script>
    <script async custom-element="amp-auto-ads" src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">
    </script>
    
</head>
</html>
<body class="loading">
    <span id="config-title" style="display:none">闲看花开 静待花落</span>
    <div id="loader"></div>
    <div id="single">
    <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div id="top" style="display: block;">
    <div class="bar" style="width: 0;"></div>
    <a class="icon-home image-icon" href="javascript:;" data-url="https://mrdcg.github.io"></a>
    <div title="播放/暂停" class="icon-play"></div>
    <h3 class="subtitle">Java基础之集合</h3>
    <div class="social">
        <!--<div class="like-icon">-->
            <!--<a href="javascript:;" class="likeThis active"><span class="icon-like"></span><span class="count">76</span></a>-->
        <!--</div>-->
        <div>
            <div class="share">
                <a title="获取二维码" class="icon-scan" href="javascript:;"></a>
            </div>
            <div id="qr"></div>
        </div>
    </div>
    <div class="scrollbar"></div>
</div>

    <div class="section">
        <div class="article">
    <div class='main'>
        <h1 class="title">Java基础之集合</h1>
        <div class="stuff">
            <span>七月 07, 2019</span>

            <span>
   阅读数(请刷新)<span id="busuanzi_value_page_pv"></span>
</span>
            
  <ul class="post-tags-list"><li class="post-tags-list-item"><a class="post-tags-list-link" href="/tags/学习/">学习</a></li></ul>



        </div>
        <div class="content markdown">
            <h2 id="利用list集合编写的终极武器系统"><a href="#利用list集合编写的终极武器系统" class="headerlink" title="利用list集合编写的终极武器系统"></a><a href></a>利用list集合编写的终极武器系统</h2><h2 id="用户操作"><a href="#用户操作" class="headerlink" title="用户操作"></a><a href></a>用户操作</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br></pre></td><td class="code"><pre><span class="line">package Demo;</span><br><span class="line"></span><br><span class="line">import java.util.ArrayList;</span><br><span class="line">import java.util.HashMap;</span><br><span class="line">import java.util.List;</span><br><span class="line">import java.util.Map;</span><br><span class="line">import java.util.Random;</span><br><span class="line"></span><br><span class="line">public class crud &#123;</span><br><span class="line"></span><br><span class="line">	static List&lt;Map&lt;String, Object&gt;&gt; list  = new  ArrayList&lt;Map&lt;String,Object&gt;&gt;();</span><br><span class="line">   </span><br><span class="line">	public List&lt;Map&lt;String, Object&gt;&gt; add( String name, String password) &#123;</span><br><span class="line">		Map&lt;String, Object&gt; map  = new  HashMap&lt;String, Object&gt;();</span><br><span class="line">		int  id ;</span><br><span class="line">		if(list.size()==0)&#123;</span><br><span class="line">			id=1;</span><br><span class="line">		&#125;</span><br><span class="line">		else&#123;</span><br><span class="line">			id= new Random().nextInt(1000);</span><br><span class="line">		&#125;</span><br><span class="line">		map.put(&quot;id&quot;, id);  </span><br><span class="line">		map.put(&quot;name&quot;, name); </span><br><span class="line">		map.put(&quot;password&quot;, password); </span><br><span class="line">		list.add(map);</span><br><span class="line">		return  list;</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	public int delete(String id) &#123;</span><br><span class="line">		for (int i = 0; i &lt; list.size(); i++) &#123;</span><br><span class="line">		   Map&lt;String, Object&gt; map = list.get(i);	</span><br><span class="line">		   if(id.equals(map.get(&quot;id&quot;).toString()))&#123;</span><br><span class="line">			   list.remove(i);</span><br><span class="line">			  return 0;</span><br><span class="line">		   &#125;</span><br><span class="line">		&#125;</span><br><span class="line">		 return 1;</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	public List&lt;Map&lt;String, Object&gt;&gt; show() &#123;</span><br><span class="line">		return list;</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	public void update(String updateid, String str) &#123;</span><br><span class="line">	     Map&lt;String, Object&gt; newmap = new HashMap&lt;String, Object&gt;();</span><br><span class="line">	     newmap.put(&quot;id&quot;, updateid);</span><br><span class="line">	   //用split(&apos;-&apos;)方法将字符串以&quot;-&quot;分割形成一个字符串数组，然后再通过索引[0]取出所得数组中的第1个元素的值</span><br><span class="line">	     newmap.put(&quot;name&quot;, str.split(&quot;-&quot;)[0]);   </span><br><span class="line">	     newmap.put(&quot;password&quot;, str.split(&quot;-&quot;)[1]); </span><br><span class="line">			</span><br><span class="line">		  for (int i = 0; i &lt; list.size(); i++) &#123;</span><br><span class="line">			Map&lt;String, Object&gt; map = list.get(i);</span><br><span class="line">			if(updateid.equals(map.get(&quot;id&quot;).toString()))&#123;</span><br><span class="line">				list.set(i, newmap);</span><br><span class="line">			&#125;</span><br><span class="line">		&#125;</span><br><span class="line">		</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	public void em() &#123;</span><br><span class="line">		for (int i = 0; i &lt; list.size(); i++) &#123;</span><br><span class="line">			list.remove(i);</span><br><span class="line">			  </span><br><span class="line">			&#125;</span><br><span class="line">		</span><br><span class="line">	&#125;</span><br><span class="line">		</span><br><span class="line">	 </span><br><span class="line">	</span><br><span class="line">	</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>


<h2 id="登录操作"><a href="#登录操作" class="headerlink" title="登录操作"></a><a href></a>登录操作</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br><span class="line">287</span><br><span class="line">288</span><br><span class="line">289</span><br><span class="line">290</span><br><span class="line">291</span><br><span class="line">292</span><br><span class="line">293</span><br><span class="line">294</span><br><span class="line">295</span><br><span class="line">296</span><br><span class="line">297</span><br><span class="line">298</span><br><span class="line">299</span><br><span class="line">300</span><br><span class="line">301</span><br><span class="line">302</span><br><span class="line">303</span><br><span class="line">304</span><br><span class="line">305</span><br><span class="line">306</span><br><span class="line">307</span><br><span class="line">308</span><br><span class="line">309</span><br><span class="line">310</span><br><span class="line">311</span><br><span class="line">312</span><br><span class="line">313</span><br><span class="line">314</span><br><span class="line">315</span><br><span class="line">316</span><br><span class="line">317</span><br><span class="line">318</span><br><span class="line">319</span><br><span class="line">320</span><br><span class="line">321</span><br><span class="line">322</span><br><span class="line">323</span><br><span class="line">324</span><br><span class="line">325</span><br><span class="line">326</span><br><span class="line">327</span><br><span class="line">328</span><br><span class="line">329</span><br><span class="line">330</span><br><span class="line">331</span><br><span class="line">332</span><br><span class="line">333</span><br><span class="line">334</span><br><span class="line">335</span><br><span class="line">336</span><br><span class="line">337</span><br><span class="line">338</span><br><span class="line">339</span><br><span class="line">340</span><br><span class="line">341</span><br><span class="line">342</span><br><span class="line">343</span><br><span class="line">344</span><br><span class="line">345</span><br><span class="line">346</span><br><span class="line">347</span><br><span class="line">348</span><br><span class="line">349</span><br><span class="line">350</span><br><span class="line">351</span><br><span class="line">352</span><br><span class="line">353</span><br><span class="line">354</span><br><span class="line">355</span><br><span class="line">356</span><br><span class="line">357</span><br><span class="line">358</span><br><span class="line">359</span><br></pre></td><td class="code"><pre><span class="line">package Demo;</span><br><span class="line"></span><br><span class="line">import java.util.HashMap;</span><br><span class="line">import java.util.List;</span><br><span class="line">import java.util.Map;</span><br><span class="line">import java.util.Scanner;</span><br><span class="line">public class Login &#123;</span><br><span class="line">	   static  int sum =0;</span><br><span class="line">	   public static Scanner  sc   = new Scanner(System.in);</span><br><span class="line">	   static int i =0;</span><br><span class="line">	   static  crud crud = new crud();</span><br><span class="line">	   static  weapon weapon = new weapon();</span><br><span class="line">	public static void main(String[] args) &#123;</span><br><span class="line">		 int sum =0;</span><br><span class="line">		System.out.println(&quot;----------欢迎使用终极武器系统------------&quot;);</span><br><span class="line">		System.out.println(&quot;    ------1.登录---------2.注册------&quot;);</span><br><span class="line">		</span><br><span class="line">		int index = sc.nextInt();</span><br><span class="line">		if(index==1)&#123;</span><br><span class="line">			//登录</span><br><span class="line">			while (true) &#123;</span><br><span class="line">				System.out.println(&quot;请输入您的用户名&quot;);</span><br><span class="line">				String name = sc.next();</span><br><span class="line">				System.out.println(&quot;请输入您的密码&quot;);</span><br><span class="line">				String pwd = sc.next();</span><br><span class="line">				if(name.equals(&quot;admin&quot;)&amp;&amp;pwd.equals(&quot;admin&quot;))&#123;</span><br><span class="line">					System.out.println(&quot;您好，将军！您已获取最高权限，系统有自爆程序，请小心使用！&quot;);</span><br><span class="line">					loginAdmin();</span><br><span class="line">					return;</span><br><span class="line">				&#125;</span><br><span class="line">				List&lt;Map&lt;String, Object&gt;&gt; list = crud.show();</span><br><span class="line">				if(list.size()==0)&#123;</span><br><span class="line">					System.out.println(&quot;暂无用户&quot;);</span><br><span class="line">					main(null);</span><br><span class="line">					return;</span><br><span class="line">				&#125;</span><br><span class="line">				for (int i = 0; i &lt; list.size(); i++) &#123;</span><br><span class="line">					if(name.equals(list.get(i).get(&quot;name&quot;).toString()))&#123;</span><br><span class="line">						if(pwd.equals(list.get(i).get(&quot;password&quot;).toString()))&#123;</span><br><span class="line">							System.out.println(&quot;登录成功&quot;);</span><br><span class="line">							loginOk();</span><br><span class="line">						&#125;</span><br><span class="line">						else&#123;</span><br><span class="line">							  System.out.println(&quot;密码错误&quot;);	</span><br><span class="line">							  sum++;</span><br><span class="line">							&#125;</span><br><span class="line">					&#125;</span><br><span class="line">					else&#123;</span><br><span class="line">						 System.out.println(&quot;用户名错误&quot;);	</span><br><span class="line">						 sum++;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				if(sum==3)&#123;</span><br><span class="line">					System.out.println(&quot;您已累计三次错误。。。&quot;);</span><br><span class="line">					main(null);</span><br><span class="line">					return;</span><br><span class="line">				&#125;</span><br><span class="line">			&#125;</span><br><span class="line">			</span><br><span class="line">		&#125;</span><br><span class="line">		if(index==2)&#123;</span><br><span class="line">			//注册   注册成功的信息存入到数组中</span><br><span class="line">		    //  二维数组</span><br><span class="line">			user_name();</span><br><span class="line">		&#125;</span><br><span class="line">		&#125;</span><br><span class="line">	</span><br><span class="line">	</span><br><span class="line">	private static void loginOk() &#123;</span><br><span class="line">		System.out.println(&quot;--1.查看武器装备------2.选择武器-----3.发射-----4.回收武器-----0.退出&quot;);</span><br><span class="line">//		500 枪支 10000</span><br><span class="line">//		40  高射炮  500</span><br><span class="line">//		5000   投掷武器  	</span><br><span class="line">		String weaponindex = sc.next();</span><br><span class="line">		if(weaponindex.equals(&quot;1&quot;))&#123;</span><br><span class="line">			List&lt;Map&lt;String, Object&gt;&gt; list = weapon.showRm();</span><br><span class="line">			for (int i = 0; i &lt; list.size(); i++) &#123;</span><br><span class="line">				System.out.println(list.get(i));</span><br><span class="line">			&#125;</span><br><span class="line">			loginOk();</span><br><span class="line">		&#125;</span><br><span class="line">		</span><br><span class="line">		if(weaponindex.equals(&quot;2&quot;))&#123;</span><br><span class="line">			boolean t=true;</span><br><span class="line">			while(t) &#123;</span><br><span class="line">			System.out.println(&quot;选择武器类型：&quot;);</span><br><span class="line">			List&lt;Map&lt;String, Object&gt;&gt; list = weapon.showRm();</span><br><span class="line">			for (int i = 0; i &lt; list.size(); i++) &#123;</span><br><span class="line">				System.out.println(i+1 + &quot;:&quot;);</span><br><span class="line">				System.out.println(list.get(i));</span><br><span class="line">			&#125;</span><br><span class="line">			</span><br><span class="line">			</span><br><span class="line">			String type = sc.next();</span><br><span class="line">			if(type.equals(&quot;1&quot;)) &#123;</span><br><span class="line">				System.out.println(&quot;请选择枪支数量：&quot;);</span><br><span class="line">				int amount = sc.nextInt();</span><br><span class="line">				if(amount&gt;(int)list.get(0).get(&quot;数量&quot;)) &#123;</span><br><span class="line">					boolean a=true;</span><br><span class="line">					while(a) &#123;</span><br><span class="line">					System.out.println(&quot;没有那么多枪支可供选择,请重新输入！&quot;);</span><br><span class="line">					amount = sc.nextInt();</span><br><span class="line">					if(amount&lt;=(int)list.get(0).get(&quot;数量&quot;)) &#123;</span><br><span class="line">						a=false;</span><br><span class="line">					&#125;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				</span><br><span class="line">				System.out.println(&quot;请选择弹药数量：&quot;);</span><br><span class="line">				int ammunition = sc.nextInt();</span><br><span class="line">				if(ammunition&gt;(int)list.get(0).get(&quot;弹药数&quot;)) &#123;</span><br><span class="line">					boolean a=true;</span><br><span class="line">					while(a) &#123;</span><br><span class="line">					System.out.println(&quot;没有那么多弹药可供选择,请重新输入！&quot;);</span><br><span class="line">					ammunition = sc.nextInt();</span><br><span class="line">					if(ammunition&lt;=(int)list.get(0).get(&quot;弹药数&quot;)) &#123;</span><br><span class="line">						a=false;</span><br><span class="line">					&#125;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				weapon.add(type,amount,ammunition);</span><br><span class="line">			&#125;</span><br><span class="line">			else if(type.equals(&quot;2&quot;)) &#123;</span><br><span class="line">				System.out.println(&quot;请选择高射炮数量：&quot;);</span><br><span class="line">				int amount = sc.nextInt();</span><br><span class="line">				if(amount&gt;(int)list.get(1).get(&quot;数量&quot;)) &#123;</span><br><span class="line">					boolean a=true;</span><br><span class="line">					while(a) &#123;</span><br><span class="line">					System.out.println(&quot;没有那么多高射炮可供选择,请重新输入！&quot;);</span><br><span class="line">					amount = sc.nextInt();</span><br><span class="line">					if(amount&lt;=(int)list.get(1).get(&quot;数量&quot;)) &#123;</span><br><span class="line">						a=false;</span><br><span class="line">					&#125;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				System.out.println(&quot;请选择导弹数量：&quot;);</span><br><span class="line">				int ammunition = sc.nextInt();</span><br><span class="line">				if(ammunition&gt;(int)list.get(1).get(&quot;导弹数&quot;)) &#123;</span><br><span class="line">					boolean a=true;</span><br><span class="line">					while(a) &#123;</span><br><span class="line">					System.out.println(&quot;没有那么多导弹可供选择,请重新输入！&quot;);</span><br><span class="line">					ammunition = sc.nextInt();</span><br><span class="line">					if(ammunition&lt;=(int)list.get(1).get(&quot;导弹数&quot;)) &#123;</span><br><span class="line">						a=false;</span><br><span class="line">					&#125;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				weapon.add(type,amount,ammunition);</span><br><span class="line">			&#125;</span><br><span class="line">			else if(type.equals(&quot;3&quot;)) &#123;</span><br><span class="line">				System.out.println(&quot;请选择投掷武器数量：&quot;);</span><br><span class="line">				int amount = sc.nextInt();</span><br><span class="line">				if(amount&gt;(int)list.get(2).get(&quot;数量&quot;)) &#123;</span><br><span class="line">					boolean a=true;</span><br><span class="line">					while(a) &#123;</span><br><span class="line">					System.out.println(&quot;没有那么多投掷武器可供选择,请重新输入！&quot;);</span><br><span class="line">					amount = sc.nextInt();</span><br><span class="line">					if(amount&lt;=(int)list.get(2).get(&quot;数量&quot;)) &#123;</span><br><span class="line">						a=false;</span><br><span class="line">					&#125;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				int ammunition = 0;</span><br><span class="line">				weapon.add(type,amount,ammunition);</span><br><span class="line">			&#125;</span><br><span class="line">		    System.out.println(&quot;是否继续选择？[y/n]&quot;);</span><br><span class="line">		    String yn = sc.next();</span><br><span class="line">		    if(yn.equals(&quot;y&quot;)||yn.equals(&quot;Y&quot;)) &#123;</span><br><span class="line">		    	t=true;</span><br><span class="line">		    &#125;</span><br><span class="line">		    else if(yn.equals(&quot;n&quot;)||yn.equals(&quot;N&quot;)) &#123;</span><br><span class="line">		    	t=false;</span><br><span class="line">		    &#125;</span><br><span class="line">			&#125;</span><br><span class="line">			List&lt;Map&lt;String, Object&gt;&gt; listUser = weapon.showRm1();</span><br><span class="line">			for (int i = 0; i &lt; listUser.size(); i++) &#123;</span><br><span class="line">				System.out.println(&quot;选择的武器:&quot;);</span><br><span class="line">				System.out.println(listUser.get(i));</span><br><span class="line">			&#125;</span><br><span class="line">		    loginOk();</span><br><span class="line">		&#125;</span><br><span class="line">		if(weaponindex.equals(&quot;3&quot;))&#123;</span><br><span class="line">			</span><br><span class="line">			System.out.println(&quot;请选择使用武器：&quot;);</span><br><span class="line">			List&lt;Map&lt;String, Object&gt;&gt; listUsers = weapon.showRm1();</span><br><span class="line">			if(listUsers.size()==0) &#123;</span><br><span class="line">				System.out.println(&quot;没有武器，请选择武器作战！&quot;);</span><br><span class="line">				loginOk();</span><br><span class="line">			&#125;</span><br><span class="line">			for (int i = 0; i &lt; listUsers.size(); i++) &#123;</span><br><span class="line">				System.out.println(i+1 + &quot;:&quot;);</span><br><span class="line">				System.out.println(listUsers.get(i));</span><br><span class="line">			&#125;</span><br><span class="line">			int type1 = sc.nextInt();</span><br><span class="line">			</span><br><span class="line">				weapon.div(type1);</span><br><span class="line">			</span><br><span class="line">			loginOk();</span><br><span class="line">		&#125;</span><br><span class="line">		if(weaponindex.equals(&quot;4&quot;))&#123;</span><br><span class="line">			List&lt;Map&lt;String, Object&gt;&gt; listUsers = weapon.showRm1();</span><br><span class="line">			if(listUsers.size()==0) &#123;</span><br><span class="line">				System.out.println(&quot;没有武器可回收！&quot;);</span><br><span class="line">				loginOk();</span><br><span class="line">			&#125;</span><br><span class="line">			weapon.recycle();</span><br><span class="line">			System.out.println(&quot;回收成功&quot;);</span><br><span class="line">			loginOk();</span><br><span class="line">		&#125;</span><br><span class="line">		if(weaponindex.equals(&quot;0&quot;))&#123;</span><br><span class="line">			</span><br><span class="line">			main(null);</span><br><span class="line">		&#125;</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">	private static void loginAdmin() &#123;</span><br><span class="line">		System.out.println(&quot;--1.查看------2.添加-----3.移除------4.更改----5自爆----返回上一层/P &quot;);</span><br><span class="line">	    String logindex = sc.next();</span><br><span class="line">	    if(logindex.equals(&quot;1&quot;))&#123;</span><br><span class="line">	    	List&lt;Map&lt;String, Object&gt;&gt; list = crud.show();</span><br><span class="line">	    	if(list.size()==0)&#123;</span><br><span class="line">	    		System.out.println(&quot;暂无数据，请去添加&quot;);</span><br><span class="line">	    		loginAdmin();</span><br><span class="line">	    	&#125;</span><br><span class="line">	    	else&#123;</span><br><span class="line">	    		for (int i = 0; i &lt; list.size(); i++) &#123;</span><br><span class="line">					System.out.println(list.get(i));</span><br><span class="line">				&#125;</span><br><span class="line">	    		loginAdmin();</span><br><span class="line">	    	&#125;</span><br><span class="line">	    	</span><br><span class="line">	    &#125;</span><br><span class="line">	    if(logindex.equals(&quot;2&quot;))&#123;</span><br><span class="line">	    	System.out.println(&quot;请输入姓名&quot;);</span><br><span class="line">	    	String name = sc.next();</span><br><span class="line">	    	System.out.println(&quot;请输入密码&quot;);</span><br><span class="line">	    	String password = sc.next();</span><br><span class="line">	    	crud.add(name, password);</span><br><span class="line">	    	System.out.println(&quot;添加成功&quot;);</span><br><span class="line">	    	loginAdmin();</span><br><span class="line">	    &#125;</span><br><span class="line">	    </span><br><span class="line">	    if(logindex.equals(&quot;3&quot;))&#123;</span><br><span class="line">	    	List&lt;Map&lt;String, Object&gt;&gt; list = crud.show();</span><br><span class="line">	    	for (int i = 0; i &lt; list.size(); i++) &#123;</span><br><span class="line">	    		int a=i+1;</span><br><span class="line">				System.out.println(&quot;编号:&quot;+a+list.get(i));</span><br><span class="line">			&#125;</span><br><span class="line">	    	if(list.size()==0) &#123;</span><br><span class="line">	    		System.out.println(&quot;暂无用户！&quot;);</span><br><span class="line">	    		loginAdmin();</span><br><span class="line">	    	&#125;</span><br><span class="line">	    	System.out.println(&quot;请输入移动信息的编号&quot;);</span><br><span class="line">	    	String  id= sc.next();</span><br><span class="line">	    	int deletesum =crud.delete(id);</span><br><span class="line">	    	</span><br><span class="line">	    	if(deletesum==0)&#123;</span><br><span class="line">	    		System.out.println(&quot;删除成功&quot;);</span><br><span class="line">	    		loginAdmin();</span><br><span class="line">	    	&#125;</span><br><span class="line">	    	else&#123;</span><br><span class="line">	    		System.out.println(&quot;删除失败&quot;);</span><br><span class="line">	    		loginAdmin();</span><br><span class="line">	    	&#125;</span><br><span class="line">	    	</span><br><span class="line">	    	</span><br><span class="line">	    &#125;</span><br><span class="line">	    </span><br><span class="line">	    if(logindex.equals(&quot;4&quot;))&#123;</span><br><span class="line">	    	int  sum=0;</span><br><span class="line">	    	 </span><br><span class="line">	    	List&lt;Map&lt;String, Object&gt;&gt; list = crud.show();</span><br><span class="line">	    	for (int i = 0; i &lt; list.size(); i++) &#123;</span><br><span class="line">	    		int b=i+1;</span><br><span class="line">				System.out.println(&quot;编号：&quot;+b+list.get(i));</span><br><span class="line">			&#125;</span><br><span class="line">	    	if(list.size()==0) &#123;</span><br><span class="line">	    		System.out.println(&quot;暂无用户！&quot;);</span><br><span class="line">	    		loginAdmin();</span><br><span class="line">	    	&#125;</span><br><span class="line">	    	System.out.println(&quot;请选择您要修改的数据的编号&quot;);</span><br><span class="line">	    	String updateid = sc.next();</span><br><span class="line">	    	for (int i = 0; i &lt; list.size(); i++) &#123;</span><br><span class="line">				if(updateid.equals(list.get(i).get(&quot;id&quot;).toString()))&#123;</span><br><span class="line">					</span><br><span class="line">					System.out.println(list.get(i));</span><br><span class="line">					sum++;</span><br><span class="line">				&#125;</span><br><span class="line">			&#125;</span><br><span class="line">	    	if(sum==1)&#123;</span><br><span class="line">	    		System.out.println(&quot;请输入您要修改的数据内容 （姓名-密码）&quot;);</span><br><span class="line">		    	String str = sc.next();</span><br><span class="line">		    	crud.update(updateid,str);</span><br><span class="line">		    	System.out.println(&quot;修改成功&quot;);</span><br><span class="line">		    	loginAdmin();</span><br><span class="line">	    	&#125;else&#123;</span><br><span class="line">	    		System.out.println(&quot;您输入的编号有误，暂无这条数据&quot;);</span><br><span class="line">	    		loginAdmin();</span><br><span class="line">	    	&#125;</span><br><span class="line">	    	</span><br><span class="line">	    	</span><br><span class="line">	    &#125;</span><br><span class="line">	    if(logindex.equals(&quot;5&quot;)) &#123;</span><br><span class="line">    	System.out.println(&quot;自爆程序已启动，系统将于5秒后自爆，请尽快撤离（你应该跑不了了）！！！&quot;);</span><br><span class="line">    	List&lt;Map&lt;String, Object&gt;&gt; list = crud.show();</span><br><span class="line">    	crud.em();</span><br><span class="line">    	int a=5;</span><br><span class="line">    	while(true) &#123;</span><br><span class="line">	    	System.out.println(a--);</span><br><span class="line">	    	try &#123;</span><br><span class="line">				Thread.sleep(1000);</span><br><span class="line">			&#125; catch (InterruptedException e) &#123;</span><br><span class="line">				// TODO Auto-generated catch block</span><br><span class="line">				e.printStackTrace();</span><br><span class="line">			&#125; </span><br><span class="line">	    	if(a==0) &#123;</span><br><span class="line">	    		System.out.println(&quot;boom，嘣。。。boom。。。！！！&quot;);</span><br><span class="line">	    		main(null);</span><br><span class="line">	    	&#125;</span><br><span class="line">	    &#125;</span><br><span class="line">	    &#125;</span><br><span class="line">	    if(logindex.equals(&quot;p&quot;))&#123;</span><br><span class="line">	    	main(null);</span><br><span class="line">	    &#125;</span><br><span class="line">	    </span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">	private static  String user_password( String uname ) &#123;</span><br><span class="line">		System.out.println(&quot;请输入密码&quot;);</span><br><span class="line">		String upwd = sc.next();</span><br><span class="line">		if(upwd.length()&gt;=4 &amp;&amp; upwd.length()&lt;=8 )&#123;</span><br><span class="line">		</span><br><span class="line">			 crud.add(uname, upwd);</span><br><span class="line">			</span><br><span class="line">			System.out.println(&quot;注册成功&quot;);</span><br><span class="line">			main(null);</span><br><span class="line">		&#125;</span><br><span class="line">		else&#123;</span><br><span class="line">			System.out.println(&quot;请输入正确的4-8位长度密码&quot;);</span><br><span class="line">			user_password(uname);</span><br><span class="line">		&#125;</span><br><span class="line">		return null;</span><br><span class="line">	&#125;</span><br><span class="line">	private static String user_name() &#123;</span><br><span class="line">		</span><br><span class="line">		System.out.println(&quot;请输入用户名&quot;);</span><br><span class="line">		String uname = sc.next();</span><br><span class="line">		if(uname.length()&gt;=4 &amp;&amp; uname.length()&lt;=8 )&#123;</span><br><span class="line">			user_password(uname);</span><br><span class="line">		&#125;</span><br><span class="line">		else&#123;</span><br><span class="line">			System.out.println(&quot;请输入正确的4-8位用户名&quot;);</span><br><span class="line">			user_name();</span><br><span class="line">		&#125;</span><br><span class="line">		return null;</span><br><span class="line">	&#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>


<h2 id="武器操作"><a href="#武器操作" class="headerlink" title="武器操作"></a><a href></a>武器操作</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br></pre></td><td class="code"><pre><span class="line">package Demo;</span><br><span class="line"></span><br><span class="line">import java.util.ArrayList;</span><br><span class="line">import java.util.HashMap;</span><br><span class="line">import java.util.List;</span><br><span class="line">import java.util.Map;</span><br><span class="line">import java.util.Random;</span><br><span class="line">import java.util.Scanner;</span><br><span class="line"></span><br><span class="line">public class weapon &#123;</span><br><span class="line"></span><br><span class="line">	  static  int   gun = 500;</span><br><span class="line">	  static  int   archibald = 40;</span><br><span class="line">	  static  int   grenade = 5000;</span><br><span class="line">	  static  int  ammunition1 = 10000;</span><br><span class="line">	  static  int  ammunition2 = 500;</span><br><span class="line">	  public static Scanner  sc   = new Scanner(System.in);</span><br><span class="line">	  static List&lt;Map&lt;String, Object&gt;&gt;  list  = new ArrayList&lt;Map&lt;String,Object&gt;&gt;();</span><br><span class="line">	  static List&lt;Map&lt;String, Object&gt;&gt;  listUser  = new ArrayList&lt;Map&lt;String,Object&gt;&gt;();</span><br><span class="line">	static&#123;</span><br><span class="line">		</span><br><span class="line">		Map&lt;String, Object&gt; map1   = new  HashMap&lt;String, Object&gt;();</span><br><span class="line">		map1.put(&quot;数量&quot;, gun);</span><br><span class="line">		map1.put(&quot;种类&quot;, &quot;枪支&quot;);</span><br><span class="line">		map1.put(&quot;弹药数&quot;, ammunition1);</span><br><span class="line">		</span><br><span class="line">		Map&lt;String, Object&gt; map2   = new  HashMap&lt;String, Object&gt;();</span><br><span class="line">		map2.put(&quot;数量&quot;, archibald);</span><br><span class="line">		map2.put(&quot;种类&quot;, &quot;高射炮&quot;);</span><br><span class="line">		map2.put(&quot;导弹数&quot;, ammunition2);</span><br><span class="line">		</span><br><span class="line">		Map&lt;String, Object&gt; map3   = new  HashMap&lt;String, Object&gt;();</span><br><span class="line">		map3.put(&quot;数量&quot;, grenade);</span><br><span class="line">		map3.put(&quot;种类&quot;, &quot;投掷武器&quot;);</span><br><span class="line">		</span><br><span class="line">		</span><br><span class="line">		list.add(map1);</span><br><span class="line">		list.add(map2);</span><br><span class="line">		list.add(map3);</span><br><span class="line">	&#125;</span><br><span class="line">	</span><br><span class="line">	</span><br><span class="line">	public List&lt;Map&lt;String, Object&gt;&gt; showRm() &#123;</span><br><span class="line">		return list;</span><br><span class="line">	&#125;</span><br><span class="line">public List&lt;Map&lt;String, Object&gt;&gt; showRm1() &#123;</span><br><span class="line">		</span><br><span class="line">		return listUser;</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	public void add(String type, int amount, int ammunition) &#123;</span><br><span class="line">		</span><br><span class="line">		if(type.equals(&quot;1&quot;))&#123;</span><br><span class="line">			int a =(int)list.get(0).get(&quot;数量&quot;)-amount;</span><br><span class="line">			int b =(int)list.get(0).get(&quot;弹药数&quot;)-ammunition;</span><br><span class="line">			Map&lt;String, Object&gt; map   = new  HashMap&lt;String, Object&gt;();</span><br><span class="line">			map.put(&quot;数量&quot;, a);</span><br><span class="line">			map.put(&quot;种类&quot;, &quot;枪支&quot;);</span><br><span class="line">			map.put(&quot;弹药数&quot;, b);</span><br><span class="line">			list.set(0, map);</span><br><span class="line">			</span><br><span class="line">		&#125;</span><br><span class="line">		if(type.equals(&quot;2&quot;))&#123;</span><br><span class="line">			int a =(int)list.get(1).get(&quot;数量&quot;)-amount;</span><br><span class="line">			int b =(int)list.get(1).get(&quot;导弹数&quot;)-ammunition;</span><br><span class="line">			Map&lt;String, Object&gt; map   = new  HashMap&lt;String, Object&gt;();</span><br><span class="line">			map.put(&quot;数量&quot;, a);</span><br><span class="line">			map.put(&quot;种类&quot;, &quot;高射炮&quot;);</span><br><span class="line">			map.put(&quot;导弹数&quot;, b);</span><br><span class="line">			list.set(1, map);</span><br><span class="line">		&#125;</span><br><span class="line">	</span><br><span class="line">		if(type.equals(&quot;3&quot;))&#123;</span><br><span class="line">			int a =(int)list.get(2).get(&quot;数量&quot;)-amount;</span><br><span class="line">			Map&lt;String, Object&gt; map   = new  HashMap&lt;String, Object&gt;();</span><br><span class="line">			map.put(&quot;数量&quot;, a);</span><br><span class="line">			map.put(&quot;种类&quot;, &quot;投掷武器&quot;);</span><br><span class="line">			list.set(2, map);</span><br><span class="line">		&#125;</span><br><span class="line">	</span><br><span class="line">		Map&lt;String, Object&gt; map = new HashMap&lt;String, Object&gt;();</span><br><span class="line">		if(type.equals(&quot;1&quot;)) &#123;</span><br><span class="line">		map.put(&quot;选择武器种类&quot;, &quot;枪支&quot;);</span><br><span class="line">		map.put(&quot;数量&quot;, amount);</span><br><span class="line">		map.put(&quot;弹药数&quot;, ammunition);&#125;</span><br><span class="line">		else if(type.equals(&quot;2&quot;)) &#123;</span><br><span class="line">			map.put(&quot;选择武器种类&quot;, &quot;高射炮&quot;);</span><br><span class="line">			map.put(&quot;数量&quot;, amount);</span><br><span class="line">			map.put(&quot;导弹数&quot;, ammunition);&#125;</span><br><span class="line">		else if(type.equals(&quot;3&quot;)) &#123;</span><br><span class="line">			map.put(&quot;选择武器种类&quot;, &quot;投掷武器&quot;);</span><br><span class="line">			map.put(&quot;数量&quot;, amount);</span><br><span class="line">			&#125;</span><br><span class="line">		</span><br><span class="line">		listUser.add(map);</span><br><span class="line">	&#125;</span><br><span class="line">	public void div(int type1) &#123;</span><br><span class="line">		</span><br><span class="line">			if(&quot;枪支&quot;.equals(listUser.get(type1-1).get(&quot;选择武器种类&quot;).toString())) &#123;</span><br><span class="line">				System.out.println(&quot;请选择使用枪支数量：&quot;);</span><br><span class="line">				int n = sc.nextInt();</span><br><span class="line">				if(n&gt;(int)listUser.get(type1-1).get(&quot;数量&quot;)) &#123;</span><br><span class="line">					boolean a=true;</span><br><span class="line">					while(a) &#123;</span><br><span class="line">					System.out.println(&quot;枪支不够,请重新输入！&quot;);</span><br><span class="line">					n = sc.nextInt();</span><br><span class="line">					if(n&lt;=(int)listUser.get(type1-1).get(&quot;数量&quot;)) &#123;</span><br><span class="line">						a=false;</span><br><span class="line">					&#125;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				System.out.println(&quot;请选择使用弹药数量：&quot;);</span><br><span class="line">				int d = sc.nextInt();</span><br><span class="line">				if(d&gt;(int)listUser.get(type1-1).get(&quot;弹药数&quot;)) &#123;</span><br><span class="line">					boolean a=true;</span><br><span class="line">					while(a) &#123;</span><br><span class="line">					System.out.println(&quot;弹药不够,请重新输入！&quot;);</span><br><span class="line">					d = sc.nextInt();</span><br><span class="line">					if(d&lt;=(int)listUser.get(type1-1).get(&quot;弹药数&quot;)) &#123;</span><br><span class="line">						a=false;</span><br><span class="line">					&#125;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				 Map&lt;String, Object&gt; newmap = new HashMap&lt;String, Object&gt;();</span><br><span class="line">			     newmap.put(&quot;选择武器种类&quot;, &quot;枪支&quot;);</span><br><span class="line">			     newmap.put(&quot;数量&quot;,(int)listUser.get(type1-1).get(&quot;数量&quot;)-n); </span><br><span class="line">			     newmap.put(&quot;弹药数&quot;,(int)listUser.get(type1-1).get(&quot;弹药数&quot;)-d); </span><br><span class="line">			     listUser.set(type1-1, newmap);</span><br><span class="line">				System.out.println(&quot;发射：&quot;);</span><br><span class="line">				boolean t=true;</span><br><span class="line">				int j=0;</span><br><span class="line">				while(t) &#123;</span><br><span class="line">					System.out.print(&quot;哒&quot;);</span><br><span class="line">					n--;</span><br><span class="line">					int a=(int) (Math.random()*10);</span><br><span class="line">					if(a==6) &#123;</span><br><span class="line">						j++;</span><br><span class="line">					&#125;</span><br><span class="line">					</span><br><span class="line">					try &#123;</span><br><span class="line">						Thread.sleep(100);</span><br><span class="line">					&#125; catch (InterruptedException e) &#123;</span><br><span class="line">						// TODO Auto-generated catch block</span><br><span class="line">						e.printStackTrace();</span><br><span class="line">					&#125;</span><br><span class="line">					if(n==0) &#123;</span><br><span class="line">						System.out.println(&quot;  发射完毕,共击中&quot;+j+&quot;个敌军！！！&quot;);</span><br><span class="line">						t=false;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				</span><br><span class="line">			&#125;</span><br><span class="line">			else if(&quot;高射炮&quot;.equals(listUser.get(type1-1).get(&quot;选择武器种类&quot;).toString())) &#123;</span><br><span class="line">				System.out.println(&quot;请选择使用高射炮数量：&quot;);</span><br><span class="line">				int n = sc.nextInt();</span><br><span class="line">				if(n&gt;(int)listUser.get(type1-1).get(&quot;数量&quot;)) &#123;</span><br><span class="line">					boolean a=true;</span><br><span class="line">					while(a) &#123;</span><br><span class="line">					System.out.println(&quot;高射炮不够,请重新输入！&quot;);</span><br><span class="line">					n = sc.nextInt();</span><br><span class="line">					if(n&lt;=(int)listUser.get(type1-1).get(&quot;数量&quot;)) &#123;</span><br><span class="line">						a=false;</span><br><span class="line">					&#125;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				System.out.println(&quot;请选择使用导弹数量：&quot;);</span><br><span class="line">				int d = sc.nextInt();</span><br><span class="line">				if(d&gt;(int)listUser.get(type1-1).get(&quot;导弹数&quot;)) &#123;</span><br><span class="line">					boolean a=true;</span><br><span class="line">					while(a) &#123;</span><br><span class="line">					System.out.println(&quot;导弹不够,请重新输入！&quot;);</span><br><span class="line">					d = sc.nextInt();</span><br><span class="line">					if(d&lt;=(int)listUser.get(type1-1).get(&quot;导弹数&quot;)) &#123;</span><br><span class="line">						a=false;</span><br><span class="line">					&#125;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				 Map&lt;String, Object&gt; newmap = new HashMap&lt;String, Object&gt;();</span><br><span class="line">			     newmap.put(&quot;选择武器种类&quot;, &quot;高射炮&quot;);</span><br><span class="line">			     newmap.put(&quot;数量&quot;,(int)listUser.get(type1-1).get(&quot;数量&quot;)-n); </span><br><span class="line">			     newmap.put(&quot;导弹数&quot;,(int)listUser.get(type1-1).get(&quot;导弹数&quot;)-d); </span><br><span class="line">			     listUser.set(type1-1, newmap);</span><br><span class="line">				System.out.println(&quot;发射：&quot;);</span><br><span class="line">				boolean t=true;</span><br><span class="line">				int j = 0;</span><br><span class="line">				while(t) &#123;</span><br><span class="line">					System.out.print(&quot;轰&quot;);</span><br><span class="line">					n--;</span><br><span class="line">					int a=(int) (Math.random()*10);</span><br><span class="line">					if(a==6) &#123;</span><br><span class="line">						j++;</span><br><span class="line">					&#125;</span><br><span class="line">					try &#123;</span><br><span class="line">						Thread.sleep(100);</span><br><span class="line">					&#125; catch (InterruptedException e) &#123;</span><br><span class="line">						// TODO Auto-generated catch block</span><br><span class="line">						e.printStackTrace();</span><br><span class="line">					&#125;</span><br><span class="line">					if(n==0) &#123;</span><br><span class="line">						System.out.println(&quot;发射完毕,共击中&quot;+j+&quot;个敌军！！！&quot;);</span><br><span class="line">						t=false;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				</span><br><span class="line">			&#125;</span><br><span class="line">			else if(&quot;投掷武器&quot;.equals(listUser.get(type1-1).get(&quot;选择武器种类&quot;).toString())) &#123;</span><br><span class="line">				System.out.println(&quot;请选择使用投掷武器数量：&quot;);</span><br><span class="line">				int n = sc.nextInt();</span><br><span class="line">				if(n&gt;(int)listUser.get(type1-1).get(&quot;数量&quot;)) &#123;</span><br><span class="line">					boolean a=true;</span><br><span class="line">					while(a) &#123;</span><br><span class="line">					System.out.println(&quot;投掷武器不够,请重新输入！&quot;);</span><br><span class="line">					n = sc.nextInt();</span><br><span class="line">					if(n&lt;=(int)listUser.get(type1-1).get(&quot;数量&quot;)) &#123;</span><br><span class="line">						a=false;</span><br><span class="line">					&#125;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				 Map&lt;String, Object&gt; newmap = new HashMap&lt;String, Object&gt;();</span><br><span class="line">			     newmap.put(&quot;选择武器种类&quot;, &quot;投掷武器&quot;);</span><br><span class="line">			     newmap.put(&quot;数量&quot;,(int)listUser.get(type1-1).get(&quot;数量&quot;)-n); </span><br><span class="line">			  </span><br><span class="line">			     listUser.set(type1-1, newmap);</span><br><span class="line">				System.out.println(&quot;投掷：&quot;);</span><br><span class="line">				boolean t=true;</span><br><span class="line">				int j = 0;</span><br><span class="line">				while(t) &#123;</span><br><span class="line">					System.out.print(&quot;boom &quot;);</span><br><span class="line">					n--;</span><br><span class="line">					int a=(int) (Math.random()*10);</span><br><span class="line">					if(a==6) &#123;</span><br><span class="line">						j++;</span><br><span class="line">					&#125;</span><br><span class="line">					try &#123;</span><br><span class="line">						Thread.sleep(100);</span><br><span class="line">					&#125; catch (InterruptedException e) &#123;</span><br><span class="line">						// TODO Auto-generated catch block</span><br><span class="line">						e.printStackTrace();</span><br><span class="line">					&#125;</span><br><span class="line">					if(n==0) &#123;</span><br><span class="line">						System.out.println(&quot;投掷完毕,共击中&quot;+j+&quot;个敌军！！！&quot;);</span><br><span class="line">						t=false;</span><br><span class="line">					&#125;</span><br><span class="line">				&#125;</span><br><span class="line">				</span><br><span class="line">			&#125;</span><br><span class="line">	&#125;</span><br><span class="line">	public void recycle() &#123;</span><br><span class="line">		</span><br><span class="line">		for (int i = 0; i &lt; listUser.size(); i++) &#123;</span><br><span class="line">			</span><br><span class="line">			if(&quot;枪支&quot;.equals(listUser.get(i).get(&quot;选择武器种类&quot;).toString()))</span><br><span class="line">			&#123;</span><br><span class="line">			Map&lt;String, Object&gt; newmap = new HashMap&lt;String, Object&gt;();</span><br><span class="line">		     newmap.put(&quot;种类&quot;, &quot;枪支&quot;);</span><br><span class="line">		     newmap.put(&quot;数量&quot;,(int)listUser.get(i).get(&quot;数量&quot;)+(int)list.get(0).get(&quot;数量&quot;)); </span><br><span class="line">		     newmap.put(&quot;弹药数&quot;,(int)listUser.get(i).get(&quot;弹药数&quot;)+(int)list.get(0).get(&quot;弹药数&quot;)); </span><br><span class="line">		    </span><br><span class="line">		     list.set(0, newmap);</span><br><span class="line">			&#125;</span><br><span class="line">			else if(&quot;高射炮&quot;.equals(listUser.get(i).get(&quot;选择武器种类&quot;).toString()))</span><br><span class="line">			&#123;</span><br><span class="line">				Map&lt;String, Object&gt; newmap = new HashMap&lt;String, Object&gt;();</span><br><span class="line">		     newmap.put(&quot;种类&quot;, &quot;高射炮&quot;);</span><br><span class="line">		     newmap.put(&quot;数量&quot;,(int)listUser.get(i).get(&quot;数量&quot;)+(int)list.get(1).get(&quot;数量&quot;)); </span><br><span class="line">		     newmap.put(&quot;导弹数&quot;,(int)listUser.get(i).get(&quot;导弹数&quot;)+(int)list.get(1).get(&quot;导弹数&quot;)); </span><br><span class="line">		     </span><br><span class="line">		  list.set(1, newmap);</span><br><span class="line">			&#125;</span><br><span class="line">			else if(&quot;投掷武器&quot;.equals(listUser.get(i).get(&quot;选择武器种类&quot;).toString()))</span><br><span class="line">			&#123;</span><br><span class="line">			</span><br><span class="line">			Map&lt;String, Object&gt; newmap = new HashMap&lt;String, Object&gt;();</span><br><span class="line">		     newmap.put(&quot;种类&quot;, &quot;投掷武器&quot;);</span><br><span class="line">		     newmap.put(&quot;数量&quot;,(int)listUser.get(i).get(&quot;数量&quot;)+(int)list.get(2).get(&quot;数量&quot;)); </span><br><span class="line">		     </span><br><span class="line">		  list.set(2, newmap);</span><br><span class="line">		  </span><br><span class="line">			&#125;</span><br><span class="line">		&#125;</span><br><span class="line">		listUser.clear();</span><br><span class="line">	&#125;</span><br><span class="line">	</span><br><span class="line">	</span><br><span class="line"></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>


<h2 id="集合总结"><a href="#集合总结" class="headerlink" title="集合总结"></a><a href></a>集合总结</h2><h2 id="1、list集合"><a href="#1、list集合" class="headerlink" title="1、list集合"></a><a href></a>1、list集合</h2><p> 创建：List&lt;泛型&gt; list= new ArrayList&lt;泛型&gt;();<br> 添加方法：add()<br> list list= new ArrayList();<br> list.add(“你好”);<br> 更新方法：set(index, element)<br> String str = “你好，Java！”<br> list.set(0,str)<br> 移除方法：remove(index);<br> list.add(“2”);<br> list.remove(0);<br> 获取方法：get(index);<br> list.get(0);<br> 进阶：List&lt;Map&lt;String, Object&gt;&gt; list = new ArrayList&lt;Map&lt;String,Object&gt;&gt;();<br> 添加：Map&lt;String, Object&gt; map1 = new HashMap&lt;String, Object&gt;();<br> map1.put(“数量”, gun);<br> map1.put(“种类”, “枪支”);<br> map1.put(“弹药数”, ammunition1);<br> list.add(map1);<br> list.get(0).get(“数量”);//list集合数组中的第一个的数量对应的值gun；</p>
<h2 id="2、map集合"><a href="#2、map集合" class="headerlink" title="2、map集合"></a><a href></a>2、map集合</h2><p> 创建：Map&lt;k,v&gt; map = new HashMap&lt;k,v&gt;();<br> k表示键值，v为对应的值，可根据k值找到对相应的v值<br> 如：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">List&lt;Map&lt;String, Object&gt;&gt;  list  = new ArrayList&lt;Map&lt;String,Object&gt;&gt;();</span><br><span class="line">Map&lt;String, Object&gt; map1   = new  HashMap&lt;String, Object&gt;();</span><br><span class="line">		map1.put(&quot;数量&quot;, gun);</span><br><span class="line">		map1.put(&quot;种类&quot;, &quot;枪支&quot;);</span><br><span class="line">		map1.put(&quot;弹药数&quot;, ammunition1);</span><br><span class="line">		</span><br><span class="line">Map&lt;String, Object&gt; map2   = new  HashMap&lt;String, Object&gt;();</span><br><span class="line">		map2.put(&quot;数量&quot;, archibald);</span><br><span class="line">		map2.put(&quot;种类&quot;, &quot;高射炮&quot;);</span><br><span class="line">		map2.put(&quot;导弹数&quot;, ammunition2);</span><br><span class="line">		</span><br><span class="line">Map&lt;String, Object&gt; map3   = new  HashMap&lt;String, Object&gt;();</span><br><span class="line">		map3.put(&quot;数量&quot;, grenade);</span><br><span class="line">		map3.put(&quot;种类&quot;, &quot;投掷武器&quot;);</span><br><span class="line">		</span><br><span class="line">		</span><br><span class="line">		list.add(map1);</span><br><span class="line">		list.add(map2);</span><br><span class="line">		list.add(map3);</span><br><span class="line">		list.get(0).get(&quot;数量&quot;);//list集合数组中的第一个的数量对应的值gun；</span><br></pre></td></tr></table></figure>

<p> 添加方法：put();<br> Map&lt;String,Object&gt; map = new HashMap&lt;String,Object&gt;();<br> map.put();</p>

            <!--[if lt IE 9]><script>document.createElement('audio');</script><![endif]-->
            <audio id="audio" loop="1" preload="auto" controls="controls" data-autoplay="false">
                <source type="audio/mpeg" src="http://link.hhtjim.com/163/569213220.mp3">
            </audio>
            
        </div>
        
        
    <div id='gitalk-container' class="comment link"
        data-ae='false'
        data-ci='e79d3ae9c45da13e6f66'
        data-cs='896cb16e937a9e56f91295c1bab9e5aad59746ad'
        data-r='MrDCG.github.io'
        data-o='MrDCG'
        data-a='MrDCG'
        data-d='true'
    >查看评论</div>


        
    </div>

    
    
</div>

    </div>
</div>

<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/live2dw/assets/assets/koharu.model.json"},"display":{"position":"right","width":145,"height":315},"mobile":{"show":true,"scale":0.5},"react":{"opacityDefault":0.7,"opacityOnHover":0.8},"log":false});</script></body>
<script src="//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<script src="//lib.baomitu.com/jquery/1.8.3/jquery.min.js"></script>
<script src="/js/plugin.js"></script>
<script src="/js/diaspora.js"></script>
<link rel="stylesheet" href="/photoswipe/photoswipe.css">
<link rel="stylesheet" href="/photoswipe/default-skin/default-skin.css">
<script src="/photoswipe/photoswipe.min.js"></script>
<script src="/photoswipe/photoswipe-ui-default.min.js"></script>

<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>
    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">
        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>
        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">
            <div class="pswp__top-bar">
                <!--  Controls are self-explanatory. Order can be changed. -->
                <div class="pswp__counter"></div>
                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
                <button class="pswp__button pswp__button--share" title="Share"></button>
                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                      <div class="pswp__preloader__cut">
                        <div class="pswp__preloader__donut"></div>
                      </div>
                    </div>
                </div>
            </div>
            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div> 
            </div>
            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>
            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>
            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>
        </div>
    </div>
</div>




</html>
<!--崩溃欺骗-->
<script type="text/javascript" src="/js/crash_cheat.js"></script>
<!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/clicklove.js"></script>